#ifndef CPAYMENTPLANEDITDLG_H_
#define CPAYMENTPLANEDITDLG_H_

#include "ui_cpaymentplaneditdlg.h"
#include <QDialog>

#include "CommonType.h"
#include "CPaymentManager.h"

class CPaymentPlanEditDlg : public QDialog
{
    Q_OBJECT
public:
    CPaymentPlanEditDlg(QWidget* parent = Q_NULLPTR);
    ~CPaymentPlanEditDlg() = default;

    void SetData(const zl::CPaymentPlan& plan);
    inline zl::CPaymentPlan GetData() { return data_; }

public slots:
    inline int exec() override { showFullScreen(); return QDialog::exec(); }

protected slots:
    void on_btns_confirm_clicked();
    void on_btnd_cancel_clicked();

private:
    Ui::CPaymentPlanEditDlg ui;
    zl::CPaymentPlan data_;
};



#endif // CPAYMENTPLANEDITDLG_H_
